package A007sync_lock_aqs;

public class B002_可重入锁_同步方法 {

    public synchronized void m1() {
        System.out.println("=====外层");
        m2();
    }

    public synchronized void m2() {
        System.out.println("=====中层");
        m3();
    }

    public synchronized void m3() {
        System.out.println("=====内层");
    }

    public static void main(String[] args) {
        new B002_可重入锁_同步方法().m1();
    }

}
